package com.xd.erroCode;

public enum Errcode {
    LOGIN_ERRODE("400","用户非法访问"),
    OTHER_ERROR("500","服务器内部错误"),
    NOT_BRAND("500","品牌错误"),
    NOT_CATEGORY("500","商品分类错误"),
    NOT_UNIT("500","商品单位错误"),
    FAILED_UPDATE("500","修改失败"),
    UPLOAD_FAILED("500","上传失败");



    private String code;
    private String Message;

    // 构造器
    Errcode(String code,String Message ) {
        this.code = code;
        this.Message=Message;
    }

    // Getter 方法
    public String getCode() {
        return code;
    }
    public String getMessage(){
        return Message;
    }
}